import request from '@/utils/request'

// 数据词典---医保类型
export function dictInsuranceType(query) {
  return request({
    url: '/archive/common/medical/insurance/type',
    method: 'get',
    params: query
  })
}

// 数据词典---报销类型
export function dictReimburType(query) {
  return request({
    url: '/archive/common/reimbursement/type',
    method: 'get',
    params: query
  })
}

// 数据词典---报销凭证类型接口
export function dictReimburBillType(query) {
  return request({
    url: '/archive/common/reimbursement/bill/type',
    method: 'get',
    params: query
  })
}

export function dictBorrowType(query) {
  return request({
    url: '/archive/common/archive/borrow/type',
    method: 'get',
    params: query
  })
}

// 附件类型
export function typeDictData(query) {
  return request({
    url: '/archive/annex/type/dict',
    method: 'get',
    params: query
  })
}





//统一分析接口 (公共)
export function recordsAdd(query) {
  return request({
    url: '/dataAnalysis/v2/common/datan/records/add',
    method: 'post',
    data: query
  })
}

//视图
export function homeData(query) {
  return request({
    url: '/archive/personnel/home/view',
    method: 'get',
    params: query
  })
}

//柱状图视图
export function homeBarDate(beginTime, endTime) {
  return request({
    url: '/archive/personnel/view/date?beginTime=' + beginTime + '&endTime=' + endTime,
    method: 'get',
  })
}